<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title></title>
		<style>
			body,
			html {
				width: 100%;
				height: 100%;
				margin: 0;
			}
			
			.automargin {
				display: flex;
			}
			
			.automargin li:last-child {
				margin-left: auto;
			}
		</style>
	</head>

	<body>
		<ul class="automargin">
			<li>首页</li>
			<li>动态</li>
			<li>话题</li>
			<li>活动</li>
			<li>登录 &nbsp; 注册</li>
		</ul>
	</body>

</html>